package com.java.digitalsignagesystem.controller;

import com.java.digitalsignagesystem.entity.Result;
import com.java.digitalsignagesystem.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RequestMapping("/api")
@RestController
public class ApiController {
    @Autowired
    ApiService apiService;

    @GetMapping("/save")
    public Result save() throws IOException {
        apiService.save();
        return Result.success();
    }
}
